package com.itheima.myGenericity.genericitysummarize;

public class GenericitySummarize {
    public static void main(String[] args) {
        Box<String> box1 = new Box<>();
        box1.setElement("阿拉松爱小束");
        String element = box1.getElement();
        System.out.println(element);

        Box<int[]> box2 = new Box<>();
        int[] arr = {1, 2, 3, 4};
        box2.setElement(arr);
        int[] element1 = box2.getElement();
        System.out.println(element1.toString());
    }
}
